using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;

namespace BCSALE
{
    public partial class frmDangNhap : DevComponents.DotNetBar.Office2007RibbonForm
    {
        private bool canExit = false;

        public frmDangNhap()
        {
            InitializeComponent();
        }

        private void frmDangNhap_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (canExit == false)
                e.Cancel = true;            
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            canExit = true;
            Application.Exit();
        }

        private void btnDangNhap_Click(object sender, EventArgs e)
        {
            frmMain frm = new frmMain();
            frm.Show();
        }        
    }
}